﻿package  plugins.mstandio.UniversalMap.cameras{
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author mstandio
	 */
	public class Cam extends Sprite implements CamInterface{
		
		
		protected var initPan:Number;
		protected var initTilt:Number;
		protected var initZoom:Number;
		protected var camSize:Number;
		protected var panShift:Number;		
		protected var camColor:String;										
		
		public function Cam(initPan:Number, initTilt:Number, initZoom:Number, camSize:Number, panShift:Number, camColor:String) {						
			this.initPan = initPan;
			this.initTilt = initTilt;
			this.initZoom = this.validateZoom(initZoom);
			this.camSize = camSize;
			this.panShift = panShift;
			this.camColor = camColor;						
		}		
		
		public function validateZoom(zoom:Number):Number {
			return (zoom <= 1) ? 1 : ((zoom >= 15)? 15 : zoom);
		}
		public function rotate(pan:Number, tilt:Number):void{};		
		public function zoom(zoom:Number):void{};								
			
	}	
}